package leetcode;

import java.util.Locale;

/**
 * @program: datastructureandalogorithm
 * @description:
 * @author: hmx
 * @create: 2021-12-12 00:54
 **/
public class LeetCode709 {

    public String toLowerCase(String s) {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            char ch = s.charAt(i);
            if (65 <= ch && ch <= 90) {
                ch |= 32;
            }
            builder.append(ch);
        }
        return builder.toString();
    }

    /*public String toLowerCase(String s) {
        return s.toLowerCase();
    }*/

}
